﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Wings.Web.Domain;

namespace Wings.Web.Repostory
{
    public interface IRepostory<T,KeyType> where T : class, IEntity<KeyType>, new()
    {
        T Get(KeyType Id);
        void Create(T t);
        void Update(T t);
        void Delete(KeyType id);
        void Save(T t);
        //****
        IList<T> Query(Expression<Func<T, bool>> where);
        IList<T> GetAll();
        T Get(Expression<Func<T, bool>> where);
        void Comment();
    }
}
